package com.boot.service.impl;

import ch.qos.logback.classic.spi.EventArgUtil;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.boot.pojo.Product;
import com.boot.service.ProductService;
import com.boot.mapper.ProductMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
* @author liyan
* @description 针对表【product】的数据库操作Service实现
* @createDate 2025-05-10 15:30:16
*/
@Service
public class ProductServiceImpl extends ServiceImpl<ProductMapper, Product>
    implements ProductService{

    @Autowired
    private ProductMapper productMapper;
    @Override
    public List<Product> getProductList() {
        return productMapper.selectList(new QueryWrapper<Product>().eq("status", 1));
    }
}




